package com.miukoo.aikao.ucenter.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miukoo.aikao.core.annon.IdEncrypt;
import com.miukoo.aikao.core.pojos.BaseModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
　* 用户错题集
　* @Author miukoo<miukoo@126.com>
　* @Date 2020/11/19 20:12
　* @Version 1.0
  */
@Setter
@Getter
@TableName("uc_user_wrong_question")
public class WrongQuestion extends BaseModel<WrongQuestion> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 考试ID
     */
    @TableField("exam_id")
    @IdEncrypt
    private Long examId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    @IdEncrypt
    private Long userId;

    /**
     * 题目ID
     */
    @TableField("question_id")
    private Long questionId;

    /**
     * 题目类型
     */
    @TableField("question_type")
    private Short questionType;

    /**
     * 加入时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 最近错误时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 错误时间
     */
    @TableField("wrong_count")
    private Integer wrongCount;

    /**
     * 题目标题
     */
    private String title;

    /**
     * 错题序号
     */
    private Integer sort;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
